<?php 
	function value($value){
		$pattern = '/<p.*>.*<\/p>/';
		preg_match_all($pattern,$value,$productMatches);
		$patterna = '/>.*</';
		preg_match_all($patterna,$productMatches[0][0],$productMatchesa);
		$a = $productMatchesa[0][0];
		$b = ltrim($a,">");
		$c = rtrim($b,"<");
		$d = mb_substr($c,0,30,"utf-8");
		if($d != ""){
			$d =$d."...";
		}
		
		return $d;
	}
	function video($value){
		$pattern = '/src="(.+?)"/';
		preg_match_all($pattern,$value,$productMatches);
		$video = $productMatches[1][0];
		return $video;
		
	}
	
	
	
